// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 导入自定义样式
import './css/background.css'
// 导入elementui组件包括，按钮，表单，提示信息，容器布局,导航栏
import {
  Button, Input, Form, FormItem, Message,
  Container, Header, Aside, Main, Footer, Menu, Submenu,
  MenuItem, MenuItemGroup,
} from 'element-ui';
//导入axios
import axios from 'axios'
// axios配置,下次直接请求就会带上基础路径
Vue.prototype.$http = axios;
Vue.prototype.$message = Message;
// 这里配置rap2的接口，可以访问并返回假数据
axios.defaults.baseURL = 'http://localhost:8085/'
Vue.config.productionTip = false
// elementui组件使用声明
Vue.use(Input);
Vue.use(Button);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Container);
Vue.use(Header);
Vue.use(Aside);
Vue.use(Main);
Vue.use(Footer);
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItemGroup);
Vue.use(MenuItem);


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
